<?php 
if($mensaje){?>
<script>
    alert('<?php echo $mensaje ?>');
</script>

<?php }?>
<?php
    $atributos = array('id' => 'romaneo_form', 'class' => 'form_romaneo', 'name' => 'romaneo_form');

    echo form_open('romaneo/ingresoDeRollos', $atributos);

?>
<fieldset style="width: 900px;"> 
    <h1>Lista de Rollos a Procesar</h1>
    <table id="tabla" cellspacing="0">
        <caption style="font-size: 13px; text-align: left; margin-bottom: 5px;"><?php echo anchor('http://www.panambi.com/rollos_procesados/index/','Restaurar Estado de Rollos'); ?></caption>
       
        
        <tr>
           
            <th class="elthini"><a class='bold' href="javascript:$('#tabla').sortTable({onCol: 1, keepRelationships: true, sortType: 'numeric'})" style="color:#333333;">Numero Rollo</a></th>
            <th class="elth"><a class='bold' href="javascript:$('#tabla').sortTable({onCol: 2, keepRelationships: true})" style="color:#333333;">Nombre Especie</a></th>  
            <th class="elth"><a class='bold' href="javascript:$('#tabla').sortTable({onCol: 3, keepRelationships: true, sortType: 'numeric'})" style="color:#333333;">Largo Rollo</a></th>  
            <th class="elth"><a class='bold' href="javascript:$('#tabla').sortTable({onCol: 4, keepRelationships: true, sortType: 'numeric'})" style="color:#333333;">Circunferencia</a></th>   
            <th class="elth"><a class='bold' href="javascript:$('#tabla').sortTable({onCol: 5, keepRelationships: true, sortType: 'numeric'})" style="color:#333333;">Metros Cubicos</a></th>    
            <th class="elth"><a class='bold' href="javascript:$('#tabla').sortTable({onCol: 6, keepRelationships: true, sortType: 'numeric'})" style="color:#333333;">Remito</a></th>   
            <th class="elthfin">Procesar Rollo</th>

        </tr>
        <?php foreach ($rollos as $i => $datos) { ?>  
            <tr> 
                <td class="eltd"><?php echo $datos['idRollo'] ?></td>
                <td class="eltd"><?php echo $datos['nombre'] ?></td>
                <td class="eltd"><?php echo $datos['largo'] ?></td>
                <td class="eltd"><?php echo $datos['circunferencia'] ?></td>
                <td class="eltd"><?php echo $datos['m3_rollo'] ?></td>
                <td class="eltd"><?php echo $datos['Remito_id_remito'] ?></td>
                <td class="eltd"><INPUT TYPE="checkbox" NAME="id[]" VALUE="<?php echo $datos['idRollo'] ?>"/></td>
            </tr>
        <?php } ?>
    </table>
</fieldset>

<fieldset>
    <span class="errors">
            <?php
            echo "<br></br>".form_error('valor');
            ?>
        </span>
 <input type="submit" id="registrar" value="Procesar Rollo"/>
</fieldset>
 <?php echo form_close() ?>